home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Documentation / d e v e l o p / Develop Issue 23 article / Geometry Sample / README First please < prev    next >
Encoding:
Text File  |  1996-05-21  |  2.2 KB  |  60 lines  |  [TEXT/MPCC]

  1. THIS FOLDER CONTAINS A SAMPLE CODE APPLICATION TO GO WITH AN ARTICLE
  2. IN DEVELOP ISSUE 23.
  3.  
  4. It's a real skanky app, but I does show how to do the following:
  5.  
  6. • Create all of the supplied geometry types supplied with QuickDraw 3D 1.0
  7. • The mesh allows texture mapping, by providing UV parameterization, you can
  8.   use the routine TextureGroup() to select a pict file to texture both the
  9.   mesh, nurb patch and the box objects.  Supplying UVs for the other objects
  10.   is left as an exercise for the reader.
  11.   
  12. It uses a really neat shell developed by Nitin Ganatra, this is worth looking 
  13. at since it shows "the right" way to do a number of things.
  14.   
  15. See Robert Dierke's excellent trigrid sample app for a more complex example 
  16. of working with geometries.  This is included as part of the 1.0 seed kit
  17. on the CD that accompanies the develop issue 23 article.
  18.  
  19. This has more bugs than a termite hill, we just wanted to do something
  20. quick and dirty to show what was going on here.  Open a new window from
  21. the file menu, and open a tool palette from the same menu.  This has a 
  22. series of popups that allow you to mess with the appearence and geometry 
  23. being shown, also the renderer.
  24.  
  25. By using per-face and per-vertex interpolation, you can see the difference
  26. that attatching attributes at the face and vertex level in the way the 
  27. geometry is drawn.  For example with the triangle do the following:
  28.  
  29. Select triangle from the geometry popup in the tool palette
  30. Select flat from the controls popup
  31. Select interactive SW from the renderer menu
  32.  
  33. You'll see that you have a flat shaded brown triangle
  34.  
  35. Now select per-vertex from the controls popup
  36.  
  37. Now you'll see that the colors at the vertices are drawn
  38.  
  39. Look at the code in Geometry.c to see how to setup the colors both at 
  40. the geometry level and at the vertex level.
  41.  
  42. You can have more than one geometry window open at a time, which is 
  43. pretty cool.
  44.  
  45. Bugs:
  46. ----
  47.  
  48. The tool palette doesn't update properly on a context switch and does 
  49. not show initial settings correctly.
  50.  
  51.  
  52. Please send comments and bugs to NICKT or PFF or escherdude@eworld.com or
  53. nick_thompson@quickmail.apple.com
  54.  
  55. Look for updated versions of this app on the net and dev CDs
  56.  
  57. Enjoy!
  58.  
  59. Nick Thompson
  60. Developer Support